"""
统一全局响应数据格式
"""
from typing import Union, Dict, Any

from pydantic import BaseModel, PositiveInt


class MessageModel(BaseModel):
    """
    全局响应数据格式,方便前端接收数据的格式统一
    """
    code: PositiveInt
    message: str
    detail: Union[Any]
